package com.tensquare.rabbit.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by WF on 2020/7/25 14:57
 * 消息的消费方
 */
@Component
@RabbitListener(queues = "zelin-CD")
public class MyListener03 {
    @RabbitHandler
    public void getMessage(String message){
        System.out.println("成都校区收到消息：" + message);
    }
}
